package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.entity.PowerModel;
import com.xieyingwangluo.yxpart.mapper.PowerMapper;
import com.xieyingwangluo.yxpart.service.PowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PowerServiceImpl implements PowerService {
    @Autowired
    private PowerMapper powerMapper;

    @Override
    public int add(PowerModel powerModel) {
        return powerMapper.add(powerModel);
    }

    @Override
    public int del(String noid) {
        return powerMapper.del(noid);
    }

    @Override
    public int update(PowerModel powerModel) {
        return powerMapper.update(powerModel);
    }

    @Override
    public PowerModel selO(String noid) {
        return powerMapper.selO(noid);
    }

    @Override
    public List<PowerModel> selA(PowerModel powerModel) {
        return powerMapper.selA(powerModel);
    }
}
